project(button)

set(sources
        button-png.c
        button-xbm.c
        common.c
        )
if (HAVE_RSVG)
        list(APPEND sources button-svg.c)
endif()

add_library(${PROJECT_NAME}
        STATIC
        ${sources}
        )

target_link_libraries(${PROJECT_NAME}
        PUBLIC
        lib_server_protos
        PkgConfig::CAIRO
        PkgConfig::DRM
        PkgConfig::PNG
        )

target_include_directories(${PROJECT_NAME}
        PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}/../../include

        )
